<?php
session_start();
$mobile=$_REQUEST['mobile'];
$pin=$_SESSION['pin'];
$tel=$_SESSION['tel'];
echo($mobile);
echo($pin); 
echo($tel);
//reminder, pop up code come from http://www.sivamdesign.com/scripts/dwld/redi_pop.txt


?>




<head>
<script language="JavaScript" type="text/javascript">
var redirectTo = "home.php";  // change the URL at left to the URL/page you wish to
                               // redirect the viewers once the popup is closed.
function redirectMain() {
 window.opener.location.href = redirectTo; }
// -->
</script>

</head>

<html>
<body>

<!-- "http://localhost:5484/PbxAPI.aspx?func=make_call&from=<?=$tel;?>&to=<?=$mobile;?>&pin=<?=$pin;?>"Hello -->
<br />
Aguarde enquanto o sistema processa a sua chamada.
<br />
<form method="post" action="http://localhost:5484/PbxAPI.aspx?func=make_call&from=<?=$tel;?>&to=<?=$mobile;?>&pin=<?=$pin;?>">
<br />


<!-- <input type="submit" value="Make Call" name="submit"><br /> -->

</form><br />

<body onunload="redirectMain()">


</body>
<script type="text/javascript">
document.forms[0].submit();
</script>
</html>

